import React from "react";
// 样式引用
import {
    HomeWrapper
} from './style';
// 组件引用
import Topic from "./components/Topic";
import List from './components/List';
import Recommend from './components/Recommend'
// 数据引用
import {
    mainImg, topicArr, hotArr, listArr
} from '../../utils/homeMock'

class Home extends React.Component{
    constructor(props) {
        super(props);
    }
    render() {
        return(
            <HomeWrapper>
                    <main>
                        <img className='bannerImg' src={mainImg} alt=""/>
                        <Topic list={topicArr} />
                        <List list={listArr}/>
                    </main>
                    <aside>
                        <Recommend list={hotArr} />
                    </aside>
            </HomeWrapper>

        )
    }
}

export default Home
